<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1">
  <script src="../../vue.js"></script>
  <style>


#box {
  width: 200px;
  height: 200px;
  background: yellowgreen;
}





  </style>
</head>
<body>
  <div id="app">
    <button @click="show =!show">显示/隐藏</button>
    <transition 
    enter-active-class="animated tada"
    leave-active-class="animated bounceOutRight"
    >
      <div id="box"
      v-show="show"
      >
  
      </div>

    </transition>
   
  </div>

  <script>


var vm = new Vue({
  el:"#app",
  data:{
    show:false
  }
})
  </script>
  
</body>
</html>